from math import sqrt

x1, y1 = map(float, input().split())
x2, y2 = map(float, input().split())
length = sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1))
print(f"{length:.3f}")